Getting the text from a drop-down box

85

Getting the text from a drop-down box -

var skillsSelect = document.getElementById("newSkill");
var selectedText = skillsSelect.options[skillsSelect.selectedIndex].text;

Comments

Submit
0 Comments